package qt.dao;

import org.apache.ibatis.annotations.Param;
import qt.domain.Czglgx;

import java.util.List;

/**
 * Created by yanlin on 2017/10/27.
 */
public interface CzglgxDao {
    public List<Czglgx> getAllCzglgx();

    public Czglgx getCzglgx(String stcd,String pstcd);

    public int getCzglgxCount();

    public List<Czglgx> getPageCzglgx(int start, int limit);

    public int addCzglgx(Czglgx czglgx);

    public int upptCzglgx(Czglgx czglgx);

    public int deleCzglgx(@Param("stcd") String stcd,@Param("pstcd")String pstcd);

    public List<Czglgx> getAllCzglgxByNmOrId(int start, int limit,@Param("nmOrId") String nmOrId);

    public int getAllCzglgxCountByNmOrId(@Param("nmOrId") String nmOrId);

    public List<Czglgx> getAllCzglgxById(@Param("stcd") String stcd);

    public int getAllCzglgxByIdCount(@Param("stcd") String stcd);

    public int getIfExist(String stcd,String pstcd);

}
